 <html>
<head>
    <meta charset="utf-8">
     <title>判断闰年</title>

<style>
    body{position: relative;margin: auto;}
    .box{position:relative; width:400px;height:auto;margin:auto; border:solid 1px black;
    text-align: center;background-image: url("image/1.jpg")}
    </style>
    </head>
<body>
     <div class="box">
    <?php
    header('Content-type:text/html;charset=utf-8');
    $year=2008;
    if(($year%4==0)&&($year%100!=0)||($year%400==0)&&($year%100!=0)||($year%400==0)){
        echo $year.'年是闰年';
    }else{
        echo $year.'年不是 闰年';
    }
    ?>
<?php
header('Content-type:text/html;charset=utf-8');
$year=2015;
$result=(($year%4==0)&&($year%100!=0)||($year%400==0))?'是闰年':'不是闰年';

echo '<h2>闰年的判断</h2>';
echo '<p>输入的年份：' .$year;
echo '<p>判断结果：'.$year.'年'.$result;

?>

</div>
</body>
 </html>